sandbox: Use system headers first for sandbox's os.c in a different way
authorMasahiro Yamada <[email protected]>
Tue, 26 Nov 2013 07:13:59 +0000 (16:13 +0900)
committerTom Rini <[email protected]>
Wed, 29 Jan 2014 21:08:52 +0000 (16:08 -0500)
commit3d83efbce9c5c0e4f318afd62960b780216f53f0
tree7d4fc2bf161d0c3350c87e33f1e6330a5e54a23b
parentf889cc81c1572f4af0be950fd49bb6b67bc580fb
sandbox: Use system headers first for sandbox's os.c in a different way

Commit cbe5cdfcd changed config.mk and arch/sandbox/cpu/Makefile
to use -idirafter instead of -I and remove -nostdinc.

But
 * Sandbox-specific code dirties config.mk
 * os.c is compiled without such compiler flags as:
      -Wall -Wstrict-prototypes -Wno-format-security
      -fno-builtin -ffreestanding -fno-stack-protector
      -fstack-usage -Wno-format-nonliteral

This commit use -idirafter and remove the -nostdinc
differently and more simply.

Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Simon Glass <[email protected]>
arch/sandbox/cpu/Makefile
config.mk